Skip to content

improvement(ui): reuse Button treatments for canvas actions - #8155

Merged
BillLeoutsakosvl346 merged 1 commit into
codex/control-fix-canvas-controlsfrom
codex/overrides-canvas-actions
Sep 24, 2026
Merged

BillLeoutsakosvl346 merged 1 commit into
codex/control-fix-canvas-controlsfrom
codex/overrides-canvas-actions

Conversation

@BillLeoutsakosvl346

Copy link
Copy Markdown
Contributor

Canvas navigation actions now use Button's regular geometry and existing active/quiet treatments instead of local size, radius, padding and hover classes. The mode chevron uses the existing 20px icon treatment. Pan/zoom, mode selection, undo/redo, tooltips and refs are unchanged.

Intentional appearance differences: ordinary corners follow Button's 5px radius instead of 4px; inactive hover uses the shared neutral fill. The 20px chevron uses the shared muted icon color and 1.25 stroke. At default text size, ordinary actions remain 28px and the toolbar remains 36px. With 20px root text, the toolbar grows to 45px around 35px actions.

Validation: workspace type checks, lint, import/API audits and the full EMCN suite pass. Both design linters ran against the actual target; the full scanner removes all eight targeted overrides without adding findings. Before/after light/dark, selected/disabled, hover, keyboard activation, narrow and enlarged-text screenshots use the actual action wrapper with local state; mode-chevron/layout examples use equivalent consumer JSX. The authenticated workflow canvas and pan/zoom stores were not exercised. Review images are posted in a separate comment; artifacts and linters are outside this PR.

@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Sep 22, 2026 8:28pm UTC

Request Review

@BillLeoutsakosvl346

BillLeoutsakosvl346 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Before (left) / after (right). Actual canvas action wrapper with local state; the mode-chevron/layout row uses equivalent consumer JSX. Ordinary targets remain 28px, with shared neutral hover and 5px corners. The chevron remains 20px.

clipboard clipboard

2× enlarged controls:

clipboard

Matched hover, 2× enlargement:

clipboard

Base 42746a1976, head 562a790fc0. Keyboard activation and disabled controls were checked. At 20px root text the toolbar grows to 45px around 35px actions. The full gallery includes narrow and enlarged-text views. The authenticated canvas and pan/zoom stores were not exercised.

@greptile-apps

greptile-apps Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the changed geometry and visual treatments match the shared Button contracts and the documented intent.

Summary

This PR consolidates the workflow canvas toolbar onto the shared EMCN Button treatments while preserving its actions and interaction wiring.

  • Replaces local canvas-action geometry and hover classes with iconSize='regular' and the shared active/quiet variants.
  • Uses the canonical 20px icon-button treatment for the canvas-mode chevron.
  • Moves the toolbar height from an arbitrary 36px value to the equivalent spacing-scale utility.

Reviews (1) · Last reviewed commit: "improvement(ui): reuse Button treatments..."

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 2 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@BillLeoutsakosvl346
BillLeoutsakosvl346 merged commit 5a86de2 into codex/control-fix-canvas-controls Sep 24, 2026
11 checks passed
BillLeoutsakosvl346 added a commit that referenced this pull request Sep 24, 2026
* improvement(emcn): share ordinary action geometry in Button

* improvement(ui): share canvas toolbar controls

* improvement(ui): reuse Button treatments for canvas actions (#8155)

Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>

* fix(ui): preserve canvas action hover treatment

* fix(ui): retain muted canvas icon and import conventions

* refactor(emcn): keep Button hover variant self-contained

---------

Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
@waleedlatif1
waleedlatif1 deleted the codex/overrides-canvas-actions branch September 24, 2026 23:57

This branch was previously deployed

1 inactive deployment
Preview — 562a790f Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant